<?php
include 'librari/koneksi.php';
$no = $_GET['idAdmin']; //get the no which will updated
$query = "SELECT * FROM adminstrator WHERE no = $no"; //get the data that will be updated
$hasil = mysql_query($query);
$data  = mysql_fetch_array($hasil);
?>
<form method="post" action="prosestambah.php">
<table width="500" border="0" cellpadding="2" cellspacing="2">
  <tr bgcolor="orange">
	<td height="21" colspan="3">
     <strong> Tambah Data </strong>
    </td>

  <tr>
  	<td width="23%"> ID Admin</td>
    <td width="2%">:</td>
    <td width="75%"> <input type="text" name="id" disabled='disable' value="<?php echo $data['idAdmin']; ?>"> </td>
  </tr>

  <tr>
  	<td>Nama Admin</td>
    <td>:</td>
    <td> <input type="text" name="nama" value="<?php echo $data['nmAdmin']; ?>"> </td>
  </tr>

  <tr>
  	<td>Password Admin</td>
    <td>:</td>
    <td> <input type="text" name="password" value="<?php echo $data['passwdAdmin']; ?>"> </td>
  </tr>
<tr>
  	<td></td> <td></td> <td> <input type="hidden" name="no" value="<?php echo $data['id']; ?>">
  	<input type="SUBMIT" name="SUBMIT" value="Save"></td>
  </tr>
</table>
</form>